package cn.yeziji.forum.controller;

import cn.yeziji.forum.common.ForumResult;
import cn.yeziji.forum.dao.intf.ForumFriendlyLinkDao;
import cn.yeziji.forum.utils.ForumResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 友情链接控制器
 *
 * @author gzkemays
 * @since 2022/11/11 9:35 PM
 */
@RestController
@RequestMapping("/friendly")
public class ForumFriendlyLinkController {
  @Resource ForumFriendlyLinkDao friendlyLinkDao;

  @GetMapping("/list")
  public ForumResult list() {
    return ForumResultUtils.ok(friendlyLinkDao.list());
  }
}
